const Error = {
    'XP000': { errmsg:'接口访问失败,token不存在', errcode:'XP000'},
    'XP001': { errmsg:'身份验证已过期,请重新登陆', errcode:'XP001'},
    'XP002': { errmsg:'请求接口已过期', errcode:'XP002'},
    'XP003': { errmsg:'验证失败', errcode:'XP003'},

    'XP010': { errmsg:'账号不存在或为空', errcode:'XP010'},
    'XP011': { errmsg:'密码不存在或为空', errcode:'XP011'},
    'XP012': { errmsg:'用户不存在', errcode:'XP012'},
    'XP013': { errmsg:'密码错误', errcode:'XP013'},
    'XP014': { errmsg:'昵称不存在或为空', errcode:'XP014'},
    'XP015': { errmsg:'账号已被封禁，无法登录', errcode:'XP015'},
    'XP016': { errmsg:'邮箱不存在或为空', errcode:'XP016'},
    'XP017': { errmsg:'邮箱格式错误', errcode:'XP017'},
    'XP018': { errmsg:'邮箱已存在', errcode:'XP018'},
    'XP019': { errmsg:'性别不存在或为空', errcode:'XP019'},
    'XP020': { errmsg:'uid不存在或为空', errcode:'XP020'},
    'XP021': { errmsg:'旧密码不存在或为空', errcode:'XP021'},
    'XP022': { errmsg:'新密码不存在或为空', errcode:'XP022'},
    'XP023': { errmsg:'旧密码填写错误', errcode:'XP023'},
    'XP024': { errmsg:'旧密码与新密码不能一致', errcode:'XP024'},
    'XP025': { errmsg:'账号已被封禁，无法操作', errcode:'XP025'},
    'XP026': { errmsg:'密码须包含大小写字母和数字，且不能使用特殊字符', errcode:'XP026'},
    'XP027': { errmsg:'密码长度须在 6 - 16 位', errcode:'XP027'},
    'XP028': { errmsg:'昵称长度须在 2 - 8 位', errcode:'XP028'},
    'XP029': { errmsg:'上传文件格式错误，请上传png或jpg格式的图片', errcode:'XP029'},
    'XP030': { errmsg:'上传头像不能超过2MB!', errcode:'XP030'},
    'XP031': { errmsg:'参数出错', errcode:'XP031'},

    'XP050': { errmsg:'备份失败，备份ID不存在', errcode:'XP050'},
    'XP051': { errmsg:'该邮箱暂未绑定账号', errcode:'XP051'},
}

module.exports = Error;